package com.umeng.soexample.di.modules;

import com.umeng.soexample.mvp.contract.CommunityFragmentContract;
import com.umeng.soexample.mvp.model.CommunityFragmentModel;

import dagger.Module;
import dagger.Provides;

@Module
public class CommunityFragmentModules {
    private CommunityFragmentContract.CommunityFragmentIView iView;

    public CommunityFragmentModules(CommunityFragmentContract.CommunityFragmentIView iView) {
        this.iView = iView;
    }

    @Provides
    public CommunityFragmentContract.CommunityFragmentIView providerIView(){
        return iView;
    }

    @Provides
    public CommunityFragmentContract.CommunityFragmentIModel providerIModel(){
        return new CommunityFragmentModel();
    }
}
